<template>
  <div >
    <el-menu mode="horizontal" background-color="black" text-color="">
      <el-menu-item @click="GoLink">首页</el-menu-item>
      <el-menu-item @click="GoNext">商品</el-menu-item>
    </el-menu>
    <router-view></router-view>
  </div>
</template>

<script>


export default {

  methods:{
    GoLink(){
      this.$router.push('/home')
    },
    GoNext(){
      this.$router.push('/item')
    }
  },
  components: {

  }
}
</script>

<style>

</style>
